<?php foreach($model->findAll() as $model): ?>
<tr>
	<td><?php echo $model->book_id; ?></td>
	<td>
		<?php echo CHtml::link($model->book_title, array('edit','type'=>$this->action->id,'book_id'=>$model->book_id), array('title'=>'查看并修改')); ?>
	</td>
	<td><?php echo $model->book_author; ?></td>
	<td><?php if($model->book_status == 1): ?>已完结<?php else: ?>未完结<?php endif; ?></td>
	<td><?php echo $model->book_vote; ?></td>
	<td><?php echo $model->book_category_name; ?></td>
	<td>
		<?php echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl.'/images/admin/icons/pencil.png','查看并修改'), array('edit','type'=>$this->action->id,'book_id'=>$model->book_id), array('title'=>'查看并修改')); ?>
		<?php echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl.'/images/admin/icons/cross.png','删除'), array('delete','type'=>$this->action->id,'book_id'=>$model->book_id), array('title'=>'删除')); ?>
	</td>
</tr>
<?php endforeach; ?>